/**
 * Created by coder on 2016/3/28.
 */
'use strcit'
let models = require('../models');
let errors = require('../../config/errors');

let AttendanceCycle = models.AttendanceCycle;
let AttendanceCycleDao = models.AttendanceCycleDao;

function addCycle(cycle){
    if(!cycle){
        return;
    }
    let attendanceCycle = new AttendanceCycle(cycle);

    AttendanceCycleDao.create(attendanceCycle);
    return attendanceCycle;
}

module .exports = {
    addCycle
};